package com.ctg.behavior.calc.feign.event;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.ctg.behavior.common.event.CtEventCalcRequest;
import com.ctg.behavior.common.event.CtEventCalcResult;
import com.ctg.behavior.common.event.CtEventVSCalcResult;

// @FeignClient(value = "${provider.application.name}")
public interface CtEventReportFeignClient {

//	@PostMapping("/api/events/report")
//	public CtEventCalcResult calcReport(@RequestParam("bookmarkId") String bookmarkId, @RequestParam("async") Boolean async,
//			@RequestParam("timeout") Integer timeout, @RequestBody CtEventCalcBody eventCalcBody);

	// 事件分析报告
	@PostMapping("/api/events/report")
	public CtEventCalcResult doCalc(@RequestBody CtEventCalcRequest request);

	// 事件分析报告 - 对比数据
	@PostMapping("/api/events/reportvs")
	public CtEventVSCalcResult doCalcVS(@RequestBody CtEventCalcRequest request);

}
